import React,{useState,useEffect,useRef} from 'react'
import {useDebounceEffect} from 'ahooks'
 function TestUseCallBack(props:any) {
    const count:any = useRef(null)
    useEffect(()=>{
        count.current += 1
        console.log('哎呀 我被渲染了',count.current)
    },[props])
    useDebounceEffect(()=>{
      console.log('AHOOKS',props)
    },[props])
  return (
    <div>TestUseCallBack</div>
  )
}
// function isRefresh(preProps:any,nextProps:any){
//     console.log(preProps,nextProps)
//     if(preProps.childCount == nextProps.childCount){
//       return false
//     } else {
//       return true
//     }
    
// }
export default React.memo(TestUseCallBack)
